﻿using System;
using Abp.Domain.Entities;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using LeiliTech.Application.Dto;

namespace LeiliTech.@(Model.ConfigInfo.ModelFolderName).Dto
{

    public class @(Model.ConfigInfo.EntityName)Dto
    {
        @foreach (var item in Model.ColList)
        {
        @:/// <summary>
        @:/// @item.Comment
        @:///</summary>
        @:public @item.CsharpType @(item.PropertyName != "ID"?item.PropertyName:"Id") { get; set; }
        }
    }

    public class @(Model.ConfigInfo.EntityName)Input : EasyuiDto
    {
        @foreach (var item in Model.SearchList)
        {
        @:/// <summary>
        @:/// @item.Comment
        @:///</summary>
        @:public @item.CsharpType @item.PropertyName { get; set; }
        }
    }
}